# include <stdio.h>
int sum (int a)
{
	int b=0;
	int i=0;
	for(i=0;i<=a;i++)
	{
	b+=i;
	}
	printf("%d",b);
	return b;
}
int main ()
{
	sum(6);
	getchar();
	return 0;
}